import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 选择指令查询
export const fecthLotNo = (parms:any) => {
    return service.post<any,any>(`/cost/LotNoDetail/${1}`,parms)
}

// 指令查询
export const lotNoQuery = (parms:any) => {
    return service.post<any,any>(`/cost/getLotNoDetail/${1}`,parms)
}

// 冲裁单价明细
export const PunchingUnitPriceFile = (parms:any) => {
    return service.post<any,any>(`/cost/LotNoUnitPriceOfPunchingType`,parms)
}

// 重新生生指令单价
export const RegeneratesTheInstructionUnitPrice = (parms:any)=> {
    return LoginWork.post<any,any>(`/cost/RegenerateInstructionUnitPrice`,parms)
}

// 生成指令单价
export const TheInstructionUnitPrice = (parms:any)=> {
    return LoginWork.post<any,any>(`/cost/GenerateInstructionUnitPrice`,parms)
}

// 导出
export const ExportPrice = (lotNo:any)=> {
    return LoginWork.get<any,any>(`/cost/ExportOfPunchingInstructions?lotNo=${lotNo}`)
}